package com.contain.micro.minio.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Auther: tianchao
 * @Date: 2021/8/19 21:30
 * @Description:
 */
@RestController
public class HelloController {

//    @Autowired
//    private HelloService helloService;
//
//    @Autowired
//    private UserAuth userAuth;
    //http://localhost:8080/hello?username=%E7%94%B0%E8%B6%85
//    @GetMapping("/hello")
//    public String hello(@RequestParam("username") String username){
//       return helloService.sayHello(username);
//    }
//    //http://localhost:8080/auth?url=hehe
//    @GetMapping("/auth")
//    public boolean auth(@RequestParam(value = "url",required = false) String url){
//       return userAuth.authAction(url);
//    }
    //@Value("${xxxface.url}")
    private String url;

    //@Value("${xxxface.key}")
    private String key;

    //http://localhost:8080/test?url=hehe
    @GetMapping("/test")
    public String test(){
        System.out.println(url + "=====" + key);
        return "test";
    }

}
